import request from '@/utils/request'

// 查询业主委员会列表
export function listCommittee(query) {
  return request({
    url: '/other/committee/list',
    method: 'get',
    params: query
  })
}

// 查询业主委员会详细
export function getCommittee(committeeId) {
  return request({
    url: '/other/committee/' + committeeId,
    method: 'get'
  })
}

// 新增业主委员会
export function addCommittee(data) {
  return request({
    url: '/other/committee',
    method: 'post',
    data: data
  })
}

// 修改业主委员会
export function updateCommittee(data) {
  return request({
    url: '/other/committee',
    method: 'put',
    data: data
  })
}

// 删除业主委员会
export function delCommittee(committeeId) {
  return request({
    url: '/other/committee/' + committeeId,
    method: 'delete'
  })
}


// 获取角色
export function getRole() {
  return request({
    url: '/system/role/list',
    method: 'get'
  })
}
